//
// Created by shenlf on 2021-12-26.
//

#include <string>

using namespace std;
#include <cctype>
#include <iostream>
int main()
{
    string s("Hello World!");
    decltype(s.size()) punct_cnt = 0;
    for (auto c : s) {
        if (ispunct(c)) {
            ++punct_cnt;
        }
    }
    cout << punct_cnt
         << " punctuation characters in" << s << endl;

    string orig = s;
    for(auto &c :s)

    return 0;
}